import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export default new Router({
    mode: 'history',
    routes: [
        {
            path: '/',
            component: () => import(/* webpackChunkName: "home" */ '../pages/IndexPage.vue'),
            meta: {title: 'indexPage'},
        },
        {
            path: '/login',
            component: () => import(/* webpackChunkName: "login" */ '../pages/UserLogin.vue'),
            meta: {title: 'userLogin'}
        },
        {
            path: '*',
            redirect: '/404'
        }
    ]
});
